<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>el和data</title>

    <script type="text/javascript" src="../../js/vue.js"></script>

</head>
<body>

    <div id="root">
        <h1>学习名称：{{name}}</h1>
        <h1>学习地址：{{addr}}</h1>
        <h2>测试1：{{1+1}}</h1>
        <h2>测试2：{{_c}}</h1>
        <h2>测试3：{{$emit}}</h1>
    </div>
   
    <script type="text/javascript">
        Vue.config.productionTip = false;
        
        const vm = new Vue({
            el:'#root',
        
            data(){
                return{
                    name:"河南大学",
                    addr:"河南"
                }
            }
        })
        console.log(vm);
       
    </script>
</body>
</html>